/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package calculator;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.ejb.Stateless;

/**
 *
 * @author Luuk
 */
@WebService(serviceName = "CalculatorWebService")
@Stateless()
public class CalculatorWebService {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "add")
    public int add(@WebParam(name = "d0") int d0, @WebParam(name = "d1") int d1) {
        //TODO write your implementation code here:
        return d0 + d1;
    }
    
    /**
     * Web service operation
     */
    @WebMethod(operationName = "multiply")
    public int multiply(@WebParam(name = "d0") int d0, @WebParam(name = "d1") int d1) {
        //TODO write your implementation code here:
        return d0 * d1;
    }
}
